package com.itheima.stock.vo.resp;

import com.itheima.stock.pojo.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录接口响应Vo
 * @ClassName LoginRespVo
 * @Description TODO
 * @Author Zack
 * @Date 2022/12/5 21:19
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class LoginRespVo {
    /**
     * 用户ID
     */
    private String id;
    /**
     * 电话
     */
    private String phone;
    /**
     * 用户名
     */
    private String username;
    /**
     * 昵称
     */
    private String nickName;

    public LoginRespVo(SysUser sysUser) {
        this.id = sysUser.getId();
        this.phone = sysUser.getPhone();
        this.username = sysUser.getUsername();
        this.nickName = sysUser.getNickName();
    }

}
